from pao_python.pao.app import BaseApp, JsonRpcApp
from pao_python.pao import log


class App(JsonRpcApp):
    ''' 应用类 '''

    def __init__(self, app_name, address, port, web_origins, db_addr, db_port, db_name, inital_password, web_path, upload_file, certificate_path=None, private_path=None):
        ''' 构造函数 '''
        JsonRpcApp.__init__(self, app_name, address, port,
                            web_origins, certificate_path, private_path)
        self.db_addr = db_addr
        self.db_port = db_port
        self.db_name = db_name
        self.inital_password = inital_password
        self.web_path = web_path
        self.upload_file = upload_file
